assist: fix bug commiting just added file
authorJoey Hess <joeyh@joeyh.name>
Thu, 18 May 2023 18:56:13 +0000 (14:56 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 18 May 2023 18:56:13 +0000 (14:56 -0400)
Command/Assist.hs

index aaa8ea03765723d5a690754729b9ab919218bde0..de26d6c87a5b368e53516e5bb2bfbadacab183c8 100644 (file)
@@ -11,6 +11,7 @@ import Command
 import qualified Command.Sync
 import qualified Command.Add
 import Annex.CheckIgnore
+import qualified Annex.Queue
 
 cmd :: Command
 cmd = withAnnexOptions [jobsOption, backendOption] $
@@ -32,6 +33,8 @@ myseek o = startConcurrency transferStages $ do
                , Command.Add.checkGitIgnoreOption = CheckGitIgnore (False)
                , Command.Add.dryRunOption = DryRun False
                }
-       
+       -- Flush added files to index so they will be committed.
+       Annex.Queue.flush
+
        Command.Sync.prepMerge
        Command.Sync.seek' o